package com.example.mystore.service;

import com.example.mystore.model.User;

import java.util.List;

public interface UserService {
    List<User> getAllUsers();
    int removeUserById(int id);  // 修改删除方法名称
    User updateUser(User user);
    User getUserById(int id);
    User register(User user);
    User login(String account, String password);
    boolean updatePassword(Integer Id, String asw, String newPassword);
    boolean updatePassword(String account, String newPassword);
    boolean validateUserInfo(String account, String phone, String email, String question, String answer);
}

